﻿using AutoMapper;
using S.BreedingHistory.Domain.BreedingHistoryDto;
using S.BreedingHistory.Domain.Model;
using S.BreedingHistory.Read.Api.Dto;

namespace S.BreedingHistory.Read.Api.Extensions.AutoMapper
{
    public class ReadProfile:Profile
    {
        public ReadProfile()
        {
            //种母历史记录的显示
          //  CreateMap<List<BreedingHistoryModel>, List<BreedingHistoryListDto>>();//从前往后传输相同字段的值
            //种母历史记录的反填
            CreateMap<BreedingHistoryModel, BreedingHistoryListDto>();
            //种母档案卡
            CreateMap<BreedingHistoryModel, FileCardDto>();
        }
    }
}
